package bbs.entity.constants;

/**
 * 返回消息
 */
public class Constants {
    public static final Integer ZERO = Integer.valueOf(0);
    public static final Integer ONE = Integer.valueOf(1);
    public static final Integer l = Integer.valueOf(1);

    public static final Integer LENGTH_30 = Integer.valueOf(30);

    public static final Integer LENGTH_10 = Integer.valueOf(10);

    public static final Integer File_SIEZ_IN = 1024 * 1024;

    public static final Integer LENGTH_5 = Integer.valueOf(5);
    public static final Integer Integral_5 = Integer.valueOf(5);

    public static final Integer LENGTH_15 = Integer.valueOf(15);

    public static final Integer LENGTH_200 = Integer.valueOf(200);

    public static final Integer LENGTH_190 = Integer.valueOf(190);

    public static final String SUCCESS = "success";

    public static final String ERROR = "error";

    public static final String SESSION_KEY = "session_key";

    public static final String SESSION_KEY_FREQUENCY = "session_key_frequency";

    public static final String CHECK_CODE_KEY = "check_code_key";

    public static final String CHECK_CODE_KEY_EMAIL = "check_code_key_email";

    public static final String FILE_FOLDER_FILE = "/file/";
    public static final String FILE_FOLDER_ATTACHMENT = "attachment/";

    public static final String FILE_FOLDER_TEMP = "/temp/";

    public static final String FILE_FOLDER_TEMP_2 = "temp";

    public static final String FILE_FOLDER_IMAGE = "images/";

    public static final String FILE_FOLDER_AVATAR_NAME = "avatar/";

    public static final String AVATAR_SUFFIX = ".jpg";

    public static final String AVATAR_DEFAULT = "default_avatar.jpg";

    public static final String READ_IMAGE_PATH = "/api/file/getImage/";

    public static final String[] IMAGE_SUFFIX = new String[] { ".png", ".PNG", ".jpg", ".JPG", ".jpeg", ".JPEG", ".gif", ".GIF", ".bmp", ".BMP" };

    public static final Integer I = Integer.valueOf(0);

    public static final Integer J = Integer.valueOf(1);

    public static final Integer K = Integer.valueOf(512000);

    public static final Integer L = Integer.valueOf(1048576);

    public static final String NO_ADDRESS = "未知";


    public static final String NICKNAME_EXISTS = "该昵称已被使用";
    public static final String EMAIL_EXISTS = "该邮箱已注册";
    public static final String EMAIL_NOT_EXISTS = "该邮箱不存在";
    public static final String ARTICLE_NOT_EXISTS = "文章不存在";
    public static final String COMMENT_NOT_EXISTS = "文章不存在";
    public static final String ATTACHMENT_NOT_EXISTS = "附件不存在";
    public static final String USER_NOT_EXISTS = "用户不存在";
    public static final String BOARD_NOT_EXISTS = "板块不存在";
    public static final String ACCOUNT_DISABLE = "账号已被封禁";
    public static final String EMAIL_SEND_ERROR = "发送邮件失败";
    public static final String IMAGE_CODE_ERROR = "图片验证码错误";
    public static final String EMAIL_CODE_ERROR = "邮箱验证码错误";
    public static final String FILE_TYPE_ERROR = "文件类型错误";
    public static final String EMAIL_PASSWORD_ERROR = "邮箱或密码错误";
    public static final String INTEGRAL_UPDATE_ERROR = "积分更新失败";
    public static final String FILE_UPDATE_ERROR = "上传文件失败";
    public static final String EMAIL_CODE_EXPIRE = "邮箱验证码已过期";
    public static final String INTEGRAL_NOT_COMPLIANCE = "积分不够";

}
